package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.leihao.vo.WxHomeIndexVo;
import com.cskaoyan.service.GoodsService;
import com.cskaoyan.service.HomeIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: leihao
 * @Date: Created in 11:18 2022/6/29
 */
@RestController
@RequestMapping("wx")
public class HomeIndexWxController {
    @Autowired
    HomeIndexService homeIndexService;
    @RequestMapping("home/index")
    public BaseRespVo homeIndex(){
        WxHomeIndexVo homeIndexVo = homeIndexService.getHomeIndex();
        return BaseRespVo.ok(homeIndexVo);
    }

}
